const {resolve} = require('path')
const webpack = require('webpack')

module.exports = {
  entry: {
    jquery3: ['jquery']
  },
  output: {
    filename: "[name].js",
    path: resolve(__dirname,'dll'),
    library: '[name]_[hash:4]'  //打包的库对外的名字
  },
  plugins: [
    new webpack.DllPlugin({
      name: "[name]_[hash:4]",
      path: resolve(__dirname,'dll/manifest.json')  // 清单文件目录
    })
  ],
  mode: "production"
}